package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.SMODao;
import com.aerotechnic.entities.SMO;
import com.aerotechnic.service.interfaces.SMOBoIn;

@Service("SMOBo")
@Transactional
public class SMOBo implements SMOBoIn {
	
	@Autowired
	private SMODao sMODao;

	@Override
	public void save(SMO myEntity) {
		// TODO Auto-generated method stub
		sMODao.save(myEntity);
		
	}

	@Override
	public void update(SMO myEntity) {
		// TODO Auto-generated method stub
		sMODao.update(myEntity);
		
	}

	@Override
	public void delete(int id) {
		// TODO Auto-generated method stub
		sMODao.delete(id);
	}

	@Override
	public SMO findByID(int id) {
		// TODO Auto-generated method stub
		return sMODao.findByID(id);
	}

	@Override
	public List<SMO> findAll() {
		// TODO Auto-generated method stub
		return sMODao.findAll();
	}

}
